package com.wudl.bean

import java.text.SimpleDateFormat
import java.util.Date

case class StartupLog (mid: String,
                       uid: String,
                       appId: String,
                       area: String,
                       os: String,
                       channel: String,
                       logType: String,
                       version: String,
                       ts: Long,
                       var logDate :String ="",
                       var logHour:String=""){
  val date = new Date(ts)
  logDate = new SimpleDateFormat("yyyy-MM-dd").format(date)
  logHour = new SimpleDateFormat("HH").format(date)
}